package com.wobito.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wobito.mapper.OperateLogMapper;
import com.wobito.pojo.bean.OperateLog;
import com.wobito.pojo.vo.log.AddOperateLog;
import com.wobito.pojo.vo.log.OperateLogVO;
import com.wobito.service.IOperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author lambyang
 * @since 2024-09-02
 */
@Service
public class OperateLogServiceImpl extends ServiceImpl<OperateLogMapper, OperateLog> implements IOperateLogService {

    @Autowired
    private OperateLogMapper operateLogMapper;

    @Override
    public List<OperateLog> selectOperateLogList( OperateLogVO operateLogVO) {
        return operateLogMapper.selectOperateLogList(operateLogVO);
    }

    @Override
    public int insertOperateLog(AddOperateLog addOperateLog) {
        return operateLogMapper.insertOperateLog(addOperateLog);
    }
}
